<template>
    <div>
     <ul>
       <li v-for="(item,index) in arr" :key="index">
         {{item}}
       </li>
     </ul>
     <button @click="goforward">按钮</button>
    </div>
</template>

<script>
export default {
  data () {
    return {
      arr: ['艾伦', '三笠', '阿尔敏']
    }
  },
  methods: {
    goforward () {
      var newArr = this.arr
      this.arr = this.arr.slice(1)
      this.arr.push(newArr[0])
    }
  }
}
</script>

<style>

</style>
